@ forlinx6410] #./amixer cget numid = 5, iface = mixer, name = 'line in volume'Numid = 5, iface = mixer, name = 'line in volume'; Type = integer, access = RW --- r --, values = 2, min = 0, max = 31, step = 0: Values = 23,23| Dbscale-min =-34.50db, step = 1.50db, mute = 0The maximum volume is 31. If you want to set it to 25, use cset to set it:
#Amixer
controls (default command) Sset SID Pnbs p; set contents for one mixer simple control Sget sid Get contents for one mixer simple control controls Show all controls for given card contents Show contents of all controls for given card Cset CID p nbsp; Set control contents for one control Cget cid Get control contents for one control 2. Take a look at your current audio system (different audio drivers correspond to different content an
If the Jetson TK1 audio is not available, you can enter the following command at the terminal and test again, you can use it. (Note: On the Jetson TK1 hardware, on the audio, above is the microphone, below is the handset).Amixer cset name= "Stereo ADC MIXL ADC2 Switch" 0amixer cset name= "Stereo ADC mixr ADC2 Switch" 0amixer
/dev/pcmc0d0p/dev/snd/pcmc0d0p
Ln-S/dev/Timer/dev/snd/Timer
Ln-S/dev/controlc0/dev/snd/controlc0
Ln-S/dev/mixer/dev/snd/Mixer
Fi
Export Path = $ path:/usr/share/ARM-ALSA/bin
Export alsa_config_path =/usr/share/ARM-ALSA/share/ALSA. conf
# Volumn set the sound size
Amixer cset numid = 1 45
After Successful Configuration
L ALSA sound card configuration
** The Alsa sound card works properly and is set in
-util on 6410.
For ease of understanding, set the 6410 root directory to $ rootfs
1. Move all files under the Alsa installation directory in Ubuntu to the corresponding directory of 6410 (the absolute path must be consistent) and run the following command:
Sudo CP-r/usr/share/ARM-ALSA $ rootfs/usr/share/
2. Move the cross-compiled ALSA library under the Alsa installation directory to the default library search directory in 6410 and use the command
Sudo CP-r $ rootfs/usr/share/ARM-ALSA/lib/*
Audio output can be set to automatic, headset output, and HDMI output. The default value is automatic.
Pi @ aborn ~ $ Sudo apt-get install alsa-utilspi @ aborn ~ $ Sudo modprobe snd-bcm2835 # Add the sound module to the kernel pi @ aborn ~ $ Sudo aplay/usr/share/sounds/alsa/Front_Center.wav pi @ aborn/opt/vc $ sudo amixer cset numid = 3 2 numid = 3, iface = MIXER, name = 'PCM Playback Route '; type = INTEG
Raspberry Pi (Raspberry Pi) sound output can be set to automatic, headset output, three types of output from HDMI, the default is automatic
Pi @ aborn ~ $ Sudo apt-get install alsa-utilsPi @ aborn ~ $ Sudo modprobe snd-bcm2835 # Add the sound module to the kernelPi @ aborn ~ $ Sudo aplay/usr/share/sounds/alsa/Front_Center.wavPi @ aborn/opt/vc $ sudo amixer cset numid = 3 2Numid = 3, iface = MIXER, name = 'P
A few days ago in the embedded Linux used to Alsa command, on-line check the data do not give force, only a little bit to check, and finally can use, will this use method to tell everyone, lest everyone less detours.0. First check which ALSA cmd the system supports:ll/system/bin/asla*After checking, my android4.4.2+linux3.10 system supports the following ALSA cmd-rwxr-xr-x root Shell 68242 2014-10-08 05:18 alsa_amixer-rwxr-xr-x root Shell 67639 2014-10-08 05:18 Alsa_aplay-rwxr-xr-x root Shell 13
A few days ago in the embedded Linux used to Alsa command, on-line check the data do not give the force, only a little hands to check, and finally can use, will this use to tell everyone, lest everyone less detours.0. First check which ALSA cmd the system supports:ll/system/bin/asla*After checking, my android4.4.2+linux3.10 system supports such as the following ALSA cmd-rwxr-xr-x root Shell 68242 2014-10-08 05:18 alsa_amixer-rwxr-xr-x root Shell 67639 2014-10-08 05:18 Alsa_aplay-rwxr-xr-x root S
Raspberry Pi has two audio output modes: hdmi and headphone interfaces. You can switch between the two modes at any time.
If your HDMI monitor has a built-in speaker, the audio can be played through the HDMI interface. You can also switch to the headset interface to use the speaker of the headset or other headset interface to play the video. If your monitor requests support from the speaker, the sound is output through HDMI by default; if not, the sound is output through the headset interface. T
/MUX will be checked. For details, see dapm_set_path_status: Determine whether the source corresponding to this path is selected, if yes, Set P-> connect = 1; otherwise, Set P-> connect = 0. This process is described in
(2) When the upper layer uses alsa_amixer or other methods to operate dapm kcontrols, the connection status path-> connect of the widget path will be updated. The simple process is as follows:
Amixer-application layer [alsa_amixer
/tmp/t_xifenfei.dmp9980561:table "T_xifenfei2" 9980581:create TABLE "T_XI FENFEI2 "(table definition ignored) 9985356:bind information for columns col[1] Type 1 max length, Cset 852 (ZHS16GBK) Form 1 col[ 2] Type Cset max length 852 (zhs16gbk) Form 1 col[3] Type 1 max length Cset 852 (ZHS16GBK) Form 1 col[4] Typ E 2 max length col[5] Type 2 max length col[6] Typ
The default sound output is HDMI, which can be changed to 3.5 audio ports.Command$:sudo amixer cset numid=3 1Config file is set up with HDMI Direct connect monitor, play movie, music 3.5 mouth no soundRaspi-config set from 3.5 output no soundThere's no way out.# For more options and information see# HTTP://WWW.RASPBERRYPI.ORG/DOCUMENTATION/CONFIGURATION/CONFIG-TXT.MD# Some settings may impact device functio
based on the x86 system and cannot be used in the embedded platform.
3. Make install
lib and util installed to embedded platform
On the target board, the following files must be copied to the corresponding location:
1 Lib library file, placed in the/lib/
2 conf file, should be placed in/usr/local/share, the same as the directory specified at compile time
3 application file, util can produce Aplay,amixer,arecord executable program, these files can be
Configure program will go to the directory to check the version. If not specified, it will go directly to the default directory (that is, the host's corresponding Alsalib directory, so there may be errors)
2. Make
Success must be compiled.
There's a way to teach you 1. Make clean 2) Configure 3 The Make install this method does not error, but actually installs the precompiled executable program, which is based on the x86 system and cannot be used in the embedded platform.
3.make Install
lib an
;id.name)))continue;if (kctl->id.index > id->index)continue;if (kctl->id.index + kctl->count
When we continue to track the android audio system today, we find that no matter what the connection between Android and snd_kcontrol is found, whether it is the name or numid (numid printed by alsa_amixer controls, that is, the numid of the snd_kcontrol linked list element in the kernel layer. However, it can be used to adjust the volume. Later, I modified the codec driver of the kernel, changed the k
; index)Continue;If (kctl-> id. index + kctl-> count Continue;Return kctl;}Return NULL;}
When we continue to track the Android audio system today, we find that no matter what the connection between Android and snd_kcontrol is found, whether it is the name or numid (numid printed by alsa_amixer controls, that is, the numid of the snd_kcontrol linked list element in the kernel layer. However, it can be used to adjust the volume. Later, I modified the Codec driver of the kernel, changed the kcontro
driver.The Arch default kernel has been ALSA with a set of modules and does not have to be specifically installed.Udev automatically detects the hardware at system startup and loads the appropriate sound device driver module. At this point, your sound card is ready to work, but all channels are set to mute by default.
Mute each channelAfter the current version is ALSA installed, all channels are muted by default and must be removed manually.Using alsamixer the ncurses interface, the config
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.